home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000051_tim@maths.tcd.ie_Sun Nov 6 19:15:20 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  1KB

  1. Received: from salmon.maths.tcd.ie by cs.umb.edu with SMTP id AA07475
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sun, 6 Nov 1994 19:15:20 -0500
  3. Received: from hamilton.maths.tcd.ie by salmon.maths.tcd.ie  with SMTP
  4.           id aa11838; 7 Nov 94 0:05 GMT
  5. Subject: Re: Problem with basename
  6. To: Nicolai Langfeldt <janl@math.uio.no>
  7. Date: Mon, 7 Nov 1994 00:05:34 (GMT)
  8. From: Timothy Murphy <tim@maths.tcd.ie>
  9. Cc: tex-k@cs.umb.edu
  10. In-Reply-To: <9411062242.AA01292@gilgamesj> from "Nicolai Langfeldt" at Nov 6, 94 11:42:14 pm
  11. X-Mailer: ELM [version 2.4 PL21]
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. Content-Transfer-Encoding: 7bit
  15. Content-Length: 647       
  16. Message-Id:  <9411070005.aa26429@hamilton.maths.tcd.ie>
  17.  
  18. > Ah yes. What you do is put 
  19. >   #if 0
  20. > and
  21. >   #endif 
  22. > around the definition of basename in the lib.h file in the kpathsea
  23. > directory (line 98 :-).  This has the effect of commenting out the
  24. > line.  
  25.  
  26. This seems rather unwise to me.
  27. It means you are taking the prototype for Karl's basename()
  28. from that for a completely different (and unknown) function in string.h.
  29. It is the basename() in string.h you want to get rid of,
  30. eg by saying
  31.  
  32. #define basename bname
  33.  
  34. just before string.h, and
  35.  
  36. #undef basename
  37.  
  38. just after.
  39.  
  40. It was perhaps unwise of Karl to choose a name ("basename")
  41. which might easily turn up in a header file.
  42.  
  43.